var express = require('express');
var router = express.Router();
const loginController = require('../Controller/loginController')

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('login');
});

router.post('/login',loginController.login)

router.get('/all',(req,res) => {
    res.render('index')
})

module.exports = router;
